<?php

class PontosView extends Pontos{
	
	public function listar($arr){
		$total = count($arr);
		for($i = 0;$i < $total;$i++){
				echo '<tr>';
					echo '<td width="10%"><img src="../images/banco/',$arr[$i]['img'],'" width="100" /></td>';
					echo '<td width="20%">',$arr[$i]['nomecat'],'</td>';
					echo '<td width="20%">',$arr[$i]['titulo'],'</td>';
					echo '<td width="20%" align="center" onclick="javascript:editar(',$arr[$i]['idpontos'],',\'pontos\');" class="tabelaB"><img src="images/app-edit-icon.png" width="20" align="absmiddle" /> Editar</td>';
					echo '<td width="20%" id="editar" align="center" onclick="javascript:excluir(',$arr[$i]['idpontos'],',\'Pontos\');" class="tabelaB"><img src="images/app-delete-icon.png" width="20" align="absmiddle" /> Excluir</td>';
				echo '</tr>';
	    }
	}
	public function visualizar($arr){
		echo $arr['texto'];
	}
	public function imagens($arr){
		$total = count($arr);		
		echo '<img src="imagens/galerias/',$arr[0]['imagem0'],'" class="picture" width="525" />';
		echo '<div id="legenda">',$arr[0]['legenda'],'</div>';
		echo '<ul id="mini">';
		for($i = 0;$i < $total;$i++){
			echo '<li><img src="imagens/galerias/',$arr[$i]['imagem0'],'" class="thumb" alt="',$arr[$i]['legenda'],'" /></li>';
		}
		echo '</ul>';
		echo '<br class="clear" />';
	}
	public function select($arr){
		$total = count($arr);
		for($i = 0;$i < $total;$i++){
			echo '<option value="',$arr[$i]['idpontos'],'">',$arr[$i]['nome'],'</option>';
	    }
	}
}
?>